package com.pda.common.pages.config;

import com.pda.common.basemvp.present.BasePresenter;

public class ConfigPresent extends BasePresenter<ConfigModel, ConfigView> implements ConfigModel.CallBack {

    public void config(String url, String cid) {
        view.showProgress();
        model.config(url, cid,this);
    }

    public void download() {
        view.showProgress();
        model.download(1,this);
        model.download(3,this);
        model.downloadConfig(this);
    }

    @Override
    public void ontip(String str) {
        if(view==null){
            return;
        }
        view.hideProgress();
        view.tip(str);
    }

    @Override
    public void ontips(String str) {
        if(view==null){
            return;
        }
        view.hideProgress();
        view.tips(str);
    }
}


